package com.yonyou.brigade.rtpnr.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "GetTravelCodeList_1_0")
public class GetTravelCodeListReturn {

    private String errorCode;
    private String errorMsg;
    private String recordCount;
    private TravelCode[] travelCodeList;

    @XmlElement(name = "ErrorCode")
    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    @XmlElement(name = "ErrorMsg")
    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    @XmlElement(name = "RecordCount")
    public String getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(String recordCount) {
        this.recordCount = recordCount;
    }

    @XmlElementWrapper(name = "TravelCodeList")
    @XmlElement(name = "TravelCode")
    public TravelCode[] getTravelCodeList() {
        return travelCodeList;
    }

    public void setTravelCodeList(TravelCode[] travelCodeList) {
        this.travelCodeList = travelCodeList;
    }

    @XmlRootElement(name = "TravelCode")
    public static class TravelCode{
        private String typeCode;
        private String typeName;
        private String mealSubsidy;
        private String trafficSubsidy;
        private String othersSubsidy;

        @XmlElement(name = "TypeCode")
        public String getTypeCode() {
            return typeCode;
        }

        public void setTypeCode(String typeCode) {
            this.typeCode = typeCode;
        }

        @XmlElement(name = "TypeName")
        public String getTypeName() {
            return typeName;
        }

        public void setTypeName(String typeName) {
            this.typeName = typeName;
        }

        @XmlElement(name = "MealSubsidy")
        public String getMealSubsidy() {
            return mealSubsidy;
        }

        public void setMealSubsidy(String mealSubsidy) {
            this.mealSubsidy = mealSubsidy;
        }

        @XmlElement(name = "TrafficSubsidy")
        public String getTrafficSubsidy() {
            return trafficSubsidy;
        }

        public void setTrafficSubsidy(String trafficSubsidy) {
            this.trafficSubsidy = trafficSubsidy;
        }

        @XmlElement(name = "OthersSubsidy")
        public String getOthersSubsidy() {
            return othersSubsidy;
        }

        public void setOthersSubsidy(String othersSubsidy) {
            this.othersSubsidy = othersSubsidy;
        }
    }
}
